<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="hello7">
        <lmq v-for="hellolist in hellolists" v-bind:todo="hellolist" v-bind:key="hellolist.id">
        </lmq>
    </div>

    <script src="https://cdn.jsdelivr.net/npm/vue@2"></script>
    <script>
        Vue.component(
            "lmq", {
                props: ['todo'],
                template: "<li>{{todo.text}}</li>"
                    // template: "<h1>Hello World!{{ todo.text }}</h1>",

            }
        )
        var vm = new Vue({
            el: "#hello7",
            data: {
                hellolists: [{
                    id: 0,
                    text: "Hello"
                }, {
                    id: 1,
                    text: "World"
                }, {
                    id: 3,
                    text: "飞龙在天"
                }]
            }
        })
    </script>
</body>

</html>